package com.useful.core.convert;

import org.mapstruct.Mappings;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2021/9/22 15:18 周三
 * @description :
 */
public interface PageConvert<DO, BO> {

    /**
     * do -> bo
     *
     * @param sources sources
     * @return BO
     */
    @Mappings({})
    BO convert(DO sources);

    /**
     * do list -> bo list
     *
     * @param sources sources
     * @return List<BO>
     */
    @Mappings({})
    List<BO> convertList(List<DO> sources);

}
